package net.sh.dpinfrastructure.support.spring.configuration;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

import net.sh.dpinfrastructure.config.DPConfig;
import net.sh.dpinfrastructure.http.DPHttpClientHttp;
import net.sh.dpinfrastructure.sms.DPSms;

/**
 * 
 * 短信配置类
 * 
 * @version 1.0
 * @since JDK1.7
 * @author shaohui
 * @company 上海朝阳永续信息技术有限公司
 * @copyright (c) 2016 SunTime Co'Ltd Inc. All rights reserved.
 * @date 2016年8月8日 下午3:05:18
 */
@Configuration
@Import({DPConfigConfiguration.class, DPHttpClientConfiguration.class})
public class DPSMSConfiguration {
    @Bean
    public DPSms getDPSms(DPHttpClientHttp http, DPConfig config) {
        return new DPSms(http, config);
    }
}
